home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************************
- *
- * NSSDC/CDF MESSAGE.C
- *
- * Version 2.0, 27-Feb-92, ST Systems (STX)
- *
- * Modification history:
- *
- * V1.0 24-Jan-91, D Grogan/H Leckner Original version (for CDF V2.0).
- * V1.1 25-Mar-91, J Love Cast malloc calls.
- * V2.0 27-Feb-92, J Love Modified for IBM-PC port. CDF V2.2.
- * H Leckner
- *
- ******************************************************************************/
-
- #include <stdlib.h>
- #define MESSAGE 1
- #define CP (**c)
-
- #include "wfl.h"
- #include "cdfdist.h"
- #include "cdfbrow.h"
-
- void MESS_init ( c )
-
- struct mess_menu_struct **c;
-
- {
- /*CodeRef-mark*/
-
- long int i;
- /*long int *ptr;*/
-
- *c = (struct mess_menu_struct *)
- malloc(sizeof(struct mess_menu_struct)); /* V1.1 */
-
- set_pointer ((long *)&CP.window, (long) &mess_menu_inter);
-
- WFL_create_window ((struct window_struct *) CP.window);
-
- CP.num_elements = MESS_MENU_MAX_ELEMENT;
-
- for (i = 0 ; i < CP.num_elements ; i++)
- {
- set_pointer ((long *) &(CP.elements)[i], (long) &mess_menu[i]);
- }
- #if defined(vms)
- WFL_message_init (CP.window);
- #endif
- global_mess_ptr = *c;
- }
-
-
- /*CodeRef-mark*/
- void MESS_draw (mess_menu_ptr)
-
- struct mess_menu_struct *mess_menu_ptr;
-
- {
- /*CodeRef-mark*/
-
- WFL_draw_window ((*mess_menu_ptr).window);
- }
-
-
-
-
- /*CodeRef-mark*/
- void MESS_display (message,beep)
-
- char message[];
- int beep;
- {
- /*CodeRef-mark*/
-
- WFL_message_display ((*global_mess_ptr).window, message, beep);
- }
-
-
-
- /*CodeRef-mark*/
-
- void MESS_erase_display (mess_menu_ptr)
- struct mess_menu_struct *mess_menu_ptr;
- {
- WFL_erase_display ((*mess_menu_ptr).window);
- }
- /*CodeRef-mark*/
-
-